#ifndef READ_WRITE_PARAM_H
#define READ_WRITE_PARAM_H

#include <QtCore>

//BA10Temp.ini中的读写参数类型的值
class CReadWriteParam
{
private:
    CReadWriteParam() = default;
    ~CReadWriteParam() = default;

public:
    enum eReadWriteParam{
    READ_PARAM1                         = 0, //读参数1
    READ_PARAM2                         = 1, //读参数2
    READ_PARAM3                         = 2, //读参数3
    READ_PARAM4                         = 3, //读参数4
    READ_PARAM5                         = 4, //读参数5
    READ_PARAM6                         = 5, //读参数6
    READ_PARAM7                         = 6, //读参数7
    READ_PARAM8                         = 7, //读参数8
    READ_PARAM9                         = 8, //读参数9
    READ_PARAM10                        = 0, //读参数10

    WRITE_PARAM1                        = 10, //写参数1
    WRITE_PARAM2                        = 11, //写参数2
    WRITE_PARAM3                        = 12, //写参数3
    WRITE_PARAM4                        = 13, //写参数4
    WRITE_PARAM5                        = 14, //写参数5
    WRITE_PARAM6                        = 15, //写参数6
    WRITE_PARAM7                        = 16, //写参数7
    WRITE_PARAM8                        = 17, //写参数8
    WRITE_PARAM9                        = 18, //写参数9
    WRITE_PARAM10                       = 19, //写参数10
    };

public:
    //是不是读参数
    static bool IsRead(int iParamType);
    //是不是写参数
    static bool IsWrite(int iParamType);
};


#endif //READ_WRITE_PARAM_H


